-- GENERATED SPELL FOR [Rot Hide Brute] --


function spell0_1939(pUnit, Event) --@Curse of Thule,Self--
pUnit:FullCastSpellOnTarget(3237,pUnit)
pUnit:RegisterEvent('Sorts_1939', 2000, 1)
end

function spell1_1939(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1939', 30270, 1)
end

function Sorts_1939(pUnit, Event)
local choix_sorts_1939 = math.random(0, 1)
if choix_sorts_1939 == 0 then
pUnit:RegisterEvent('spell0_1939', 1, 1)
end
if choix_sorts_1939 == 1 then
pUnit:RegisterEvent('spell1_1939', 1, 1)
end
end

function mob1939_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1939', math.random(1500, 3000), 1)
end

function mob1939_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1939_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1939_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1939, 1, 'mob1939_Action')
RegisterUnitEvent(1939, 2, 'mob1939_Leave')
RegisterUnitEvent(1939, 3, 'mob1939_Kill')
RegisterUnitEvent(1939, 4, 'mob1939_Die')
